package com.usian.service;

import com.usian.articles.Articles;
import com.usian.certified.Certified;
import com.usian.money.Money;
import com.usian.order.Order;
import com.usian.transaction.Transaction;
import com.usian.user.User;
import com.usian.vo.Result;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface UserService {

    Boolean sendMessage(String phone, String templateCode, String templateParam);

    ResponseEntity<Result> login(User user);

    Result logon(User user);

    int userInfoEdit(User user);

    User selectUserOne(Integer id);

    List<Articles> selectUserArticles(Integer id);

    List<User> concernList(Integer id);

    Result deleteConcern(Integer id,Integer userid);

    Result concern(Integer id, Integer userid);

    List<Certified> certified(String idCard);

    void savecertified(Integer userid, String realName,String idCard);

    Certified selectCertifiedArticles(Integer id);

    int deleteArticlesUser(Integer id);



    Result close(Integer userid, Integer id);

    void addAlipay(String subject, String tradeNo, String outTradeNo, String totalAmount, String buyerId, String gmtPayment, String buyerPayAmount);


    Integer update(Integer id);

    int addArticles(Articles articles);
    Integer selectUseressay(Integer id);

    Integer selectUserconcern(Integer id);

    Integer selectUserOnefens(Integer id);

    Integer selectUserfavorites(Integer id);

    Money money(Integer id);

    Transaction transaction(Integer id);
}
